
def getMenuOption(debug = False):
    if debug:
        print "getMenuOption Function"
    validInput = False
    while not validInput:
        option = raw_input("> ")
        option = option.lower()
        if option == "1":
            validInput = True
        elif option == "2":
            validInput = True
        elif option == "3":
            validInput = True
        elif (option == "easteregg" or
              option == "obama"):
            option = "easteregg"
            validInput = True
        elif (option == "o" or 
        option == "options"):
            option = "o"
            validInput = True
        elif (option == "exit" or
              option == "x" or
              option == "quit" or
              option == "q"):
                  option = "exit"
                  validInput = True
        else:
            print "please type a valid option"
            validInput = False
    if debug:
        print "Option is:", option
    return option
            
def getWord(prompt, debug = False):
    if debug:
        print "getWord Function", prompt
    validInput = False
    while not validInput:
        option = raw_input(prompt)
        validInput = True
        if option == "":
            print "please type a word"
            validInput = False
        elif isSwear(option, debug):
           print "Don't swear- Obama"       
           validInput = False
    if debug:
        print "Option:", option 
    return option

def getNumber(prompt, debug = False):
    if debug:
        print "getNumber Function", prompt
    validInput = False
    while not validInput:
        option = raw_input(prompt)
        allowedChars = "1234567890"
        validInput = True
        for letter in option:
            if debug:
                print letter
            if not(letter in allowedChars):
                validInput = False
        if not validInput:
            print "please type a number greater than 1"
    if debug:
        print "Option: ", option
    return option
            
def isSwear(word, debug = False):
    if debug: 
        print "In isSwear Function", word
    swearList = ["fuck",
                 "cunt",
                 "penis"
                 "dick"
                 "steven hawking"]
    if word.lower() in swearList:
        print doyouwant(debug) 
        return True
    else:
        return False

def doyouwant(debug = True):
    if debug:
       print "Don't Swear Kids - Obama"
    print "------------------"
    print"""::::::::::~8::::::::::::::::::::::::::::~::~~~~~~~~~~~~~~~~~
            ::::::::::=7~:::::::::::::::::::::::::::::::~~~~~~~~~~~~~~~~
            ::::::::::ID=:::::::::::::::::::::::::::::::::::~~~~~~~~~~~~
            ::::::::::78::::::::::::::::::::::::::::::::::::::::::::::::
            ::::::::::~8?:::::::::::::::::::::::::::::::::::::::::::::::
            ::::::::::$D8::::::::::::$8888O~::::::::::::::::::::::::::::
            ::::::::::ZD8:::::::::=8D8NNDNNND$::::::::::::::::::::::::::
            :::::::::+8888:::::::888DDNNNDDDDDD:::::::::::::::::::::::::
            ::::::::,I7$$$I:::::OZ8=?7$$$$$7$$88::::::::::::::::::::::::
            :::::::~~$$Z$$$+::::O$$~I$$$$7777$88+:::::::::::::::::::::::
            ::::::::?7$OZZZ:::::8Z$7$Z$$$$777$$8D:::::::::::::::::::::::
            ::::::::++$7ZZ7:::::DO7I?ZZZ$$$ZOO$$D+::::::::::::::::::::::
            ::::::::+?$7ZZ7::::$D77IN8D887ONNNZ$$Z::::::::::::::::::::::
            :::::::,~I7$$$$::::ZO$7D8OD8Z$$$$77$O$::::::::::::::::::::::
            :::::::,.?77$$7=:::O87$?7$Z8I$7ZO7I7Z+::::::::::::::::::::::
            ,::::::+7$$$ZZZ$?:::$$ZZOON8DOOO$8Z$7:::::::::::::::::::::::
            ::::,.,?77$$$$$$7I::,:$NDN8OOOOOD8O7::::::::::::::::::::::::
            :,,:+?I??$?$7$$$$$7~::$O8DMZI?=Z8$Z=::::::::::::::::::::::::
            ,~++~I?7I$$$$$$$$$$$$+:O8O88D88$$ZZ:::::::::::::::::::::::::
            :~I:$=$I$$$$$$$$$$$$$$7.DD888OZ$$Z::::::::::::::::::::::::::
            ~+~77I$$$$$$$$$$$$$$$NN,,=DDDOOO87::::::::::::::::::::::::::
            ,I~7I$Z$$$$Z$$Z$Z$$$NNMM,:~+ZDD8Z,:::::,::::::::::::::::::::
            ?I+O=$O$8Z$D$Z8$ODNMMMMMM=,:::,8,.D,::::::::::::::::::::::::
            $I$OIZZ$O$$OZDDNNMMMMMMMMMO,,.DO8?NDDO,:,:::::::::::::::::::
            7I$Z$ZZ$ZZNNNMMMMMMMMMMMMMMM.ZZDZO?NNNDDDD8+,:::::::::::::::
            I?II7$$$MMMMMMMMMMMMMMMMMMMMN=+OZN~MNNNNNNNNDD8,::::::::::::
            =?II$$7$MMMMMMMMMMMMMMMMMMMMMM?7O8OMNNNNNNNNNDN8::::::::::::
            7Z$ZZZZ8MMMMMMMMMMMMMMMMMMMMMMM$OZO?NNNNNNNNNNND=::::::::,,,
            7$7$$$$NMMMMMMMMMMMMMMMMMMMMMMMM8OZDMNNNNNNNNNNND:,::,::,,,,
            Z$$$$$ZNMMMMMMMMMMMMMMMMMMMMMMMMNOO8MNNNNNNNNNNND~:,,,,,,,,,
            Z$$$$$$ZMMMMMMMMMMMMMMMMMMMMMMMMMMOOMNNNNNNNNNNNND:,,,,,,,,,
            $O$$OZ$ZMMMMMMMMMMMMMMMMMMMMMMMMMMOOMNNNNNNNNNNMND:,,,,,,,,,
            $O$$OZ$ZMMMMMMMMMMMMMMMMMMMMMMMMMMMOMMMMNNMNNNMMNN8,,,,,,,,,
            $O$$OZ$ZMMMMMMMMMMMMMMMMMMMMMMMMMMMOMMMMMNNNNMMMMNN~,,,,,,,,
            II777777DMMMMMMMMMMMMMMMMMMMMMMMMMMNMMMMMMMMMMMNNNND:,,,,,,,
            7$$$$$$$$MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM88NZ$D:,,,,,,
            ZZZZZZZZZ8NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNONO$DZ$D,,,,,,
            $$$$$$$$$$MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM8N8O8ZZ8N$,,,,,
            8Z888Z888Z8MMMMMMMMMMMMMMMD888OO8OOINMMNMMMMDD8O8ONZONN:,,,,
            O$ZO8$Z88$OMMMMMMMMMMMMMMMMMDD88OOO88:MMMMMNMMMMMNNNNNNND,,,
            O$ZO8$Z88$ODMMMMMMMMMMMMMMMMMMD88888D:IMMMMMMMMMMMMMMMNMN8,,
            8$$O8$Z88$O8MMMMMMMMMMMMMMMMMMMMNNNNM+7DMMMMMMMMMMMMMMMMMN,,
            8$$OZ$Z?+$Z~MMMMMMMMMMMMMMMMMMMMMMMM8OO8MMMMMMMMMMMMMMMMMN:,
            ZZZO$$$$ZOOZMMMMMMMMMMMMMMMMMMMMMMMMMDDMMMMMMMMMMMMMMMMMMM==
            OOOOOOOOOOOOZMMMMMMMMMMMMMMMMMMMMMMMMMMNMMMMMMMMMMMMMMMMMNZ$
            8888888888888MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM888
            888888888888OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM88888
            OO88OOOOO8888MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM8OOOOOZOOZOOO"""
        



